package com.hfkh;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Juicer {
    String brand;
    double price;
    public String juicing(int num,String fruit){
        return num+"杯，新鲜的"+fruit+"汁";
    }

    public void print(){
        System.out.println(this.brand+"牌榨汁机，价格为："+this.price);
    }

    public static void main(String[] args) {
        Juicer joyoung = new Juicer();
        joyoung.brand = "九阳";
        joyoung.price = 88;
        joyoung.print();
        String juice = joyoung.juicing(2,"苹果");
        System.out.println(juice);
    }
}
